地図:熊本県

説明

指定した座標に熊本県を描きます。map()のパラメーターにはX座標、Y座標、描画する色を指定します。

[以下のJavaScriptプログラムをダウンロード]

function map(x,y,c){var n=128;
uart(n,14,3,x+8,y,c,0,0,1,3,7,3,15,15);
uart(n,14,3,x+16,y,c,0,32,124,254,255,255,255,255);
uart(n,14,3,x+24,y,c,24,60,62,30,191,255,255,255);
uart(n,14,3,x+32,y,c,0,0,0,0,0,0,128,128);
y=y+8;
uart(n,14,3,x+8,y,c,15,3,3,0,0,0,1,7);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+24,y,c,255,255,255,255,255,254,254,252);
uart(n,14,3,x+32,y,c,128,128,192,128,0,0,0,0);
y=y+8;
uart(n,14,3,x,y,c,0,0,16,124,60,127,127,252);
uart(n,14,3,x+8,y,c,29,52,25,67,243,241,225,51);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+24,y,c,248,248,224,224,192,224,224,240);
y=y+8;
uart(n,14,3,x,y,c,252,252,120,224,96,0,0,0);
uart(n,14,3,x+8,y,c,131,79,15,15,31,63,63,24);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,127,63);
uart(n,14,3,x+24,y,c,240,248,240,224,240,248,200,128);
y=y+8;
}
uart("PC CLEAR 0b\n");
map(0,0,1);

目次に戻る